Preventing access to your PHP includes files
Course- htaccess >
If you have a directory containing PHP includes, that you do not wish to be accessed directly from the browser, there is a way of disabling the directory using Mod_Rewrite.
To enable this, create a .htaccess file following the main instructions and guidance, and include the following text:
|
Where /includes/ is your includes directory.